package cn.zc.student.feign;



import cn.zc.student.entity.VO.StudentUserVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.constraints.NotNull;

//@Component
@FeignClient(name = "student-server",contextId = "FeignStudentUser")
public interface FeignStudentUser {


    @PostMapping("/student/studentPasswordLogin")
    StudentUserVO Login(@NotNull @RequestParam("userName") String userName, @NotNull @RequestParam("passWord") String passWord);
}
